export default [
  {
    path: '/system/user',
    name: 'UserList',
    component: () => import('@/views/system/user/userList.vue'),
    meta: { title: '员工管理' }
  },
  {
    path: '/system/department',
    name: 'DepartmentList',
    component: () => import('@/views/system/department/departmentList.vue'),
    meta: { title: '部门管理' }
  },
  {
    path: '/system/role',
    name: 'RoleList',
    component: () => import('@/views/system/role/roleList.vue'),
    meta: { title: '角色管理' }
  },
  {
    path: '/system/category',
    name: 'CategoryList',
    component: () => import('@/views/system/category/categoryList.vue'),
    meta: { title: '类目管理' }
  },
  {
    path: '/system/frontCategory',
    name: 'FrontCategoryList',
    component: () => import('@/views/system/frontCategory/frontCategoryList.vue'),
    meta: { title: '前台类目管理' }
  },
  {
    path: '/system/agreement',
    name: 'AgreementList',
    component: () => import('@/views/system/agreement/agreementList.vue'),
    meta: { title: '协议管理' }
  },
  {
    path: '/system/enum',
    meta: { title: '枚举字典' },
    children: [
      {
        path: '/',
        name: 'EnumList',
        component: () => import('@/views/system/enum/enumList.vue'),
        hidden: true
      },
      {
        path: 'label',
        name: 'LabelList',
        component: () => import('@/views/system/enum/labelList.vue'),
        meta: { title: '字典标签' },
        hidden: true
      }
    ]
  }
]
